package com.l2jserver.gameserver.model.actor.instance;

import com.l2jserver.gameserver.model.actor.templates.L2NpcTemplate;

public class L2FortWyvernManagerInstance extends L2WyvernManagerInstance
{
	public L2FortWyvernManagerInstance(int objectId, L2NpcTemplate template)
	{
		super(objectId, template);
	}
	
	@Override
	public final boolean isOwnerClan(L2PcInstance player)
	{
		if ((player.getClan() != null) && (getFort() != null) && (getFort().getOwnerClan() != null))
		{
			if ((player.getClanId() == getFort().getOwnerClan().getClanId()) && player.isClanLeader())
			{
				return true;
			}
		}
		return false;
	}
	
	@Override
	public boolean isInSiege()
	{
		return getFort().getZone().isActive();
	}
}
